OTFindOption
Finds a specific option in an options buffer.C INTERFACE
TOption* OTFindOption (UInt8* buffer, UInt32 buflen, OTXTILevel level, OTXTIName name);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
buffer
- A pointer to the buffer containing the option to be found.
buflen
- The size of the buffer containing the option to be found.
level
- The protocol of the option to be found.
name
- The name of the option to be found.
DESCRIPTION
Given a buffer such as might be returned by theOTOptionManagement
function or by any endpoint function that returns a buffer containing option information, you can use theOTFindOption
function to find a specific option in the buffer.SEE ALSO
To parse through a buffer, option by option, use theOTNextOption
function (described next).To convert option information in a buffer into a string, use the
OTCreateOptionString
function (page 5-42).